package com.yesep.learn.design.common.pojo;

import com.yesep.learn.design.common.*;

/**
 * 视频播放器
 */
public class VideoPlayer implements IMediaPlayer {
    private String fileName = null;

    @Override
    public void play(String fileName) {
        this.fileName = fileName;
        System.out.printf("play video %s. \n", fileName);
    }

    @Override
    public void pause() {
        System.out.printf("pause video %s. \n", fileName);
    }

    @Override
    public void stop() {
        System.out.printf("stop video %s. \n", fileName);
    }

    @Override
    public String getFileName() {
        return this.fileName;
    }
}
